﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace QRCode.Models
{
    public class SalesPromotionQuestion
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int ID { get; set; }

        public int SalesPromotionID { get; set; }
        public string Question1 { get; set; }
        public string Answer11 { get; set; }
        public string Answer21 { get; set; }
        public string Answer31 { get; set; }
        public string Answer41 { get; set; }
        public string Question2 { get; set; }
        public string Answer12 { get; set; }
        public string Answer22 { get; set; }
        public string Answer32 { get; set; }
        public string Answer42 { get; set; }
        public string Question3 { get; set; }
        public string Answer13 { get; set; }
        public string Answer23 { get; set; }
        public string Answer33 { get; set; }
        public string Answer43 { get; set; }
        public string Question4 { get; set; }
        public string Answer14 { get; set; }
        public string Answer24 { get; set; }
        public string Answer34 { get; set; }
        public string Answer44 { get; set; }
        public bool Active { get; set; }
    }

    public class SalesPromotionQuestionDBContext : DbContext
    {
        public DbSet<SalesPromotionQuestion> SalesPromotionQuestions { get; set; }
    }
}